<template>
  <div class="app-page">
    <app-header />

    <div class="main">
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
const slots = defineSlots()

const props = defineProps({
  title: String,
  fill: { type: Boolean, default: true },
  vertical: Boolean,
})

const className = computed(() => {
  return {
    'app-container': true,
    'app-container--fill': props.fill,
    'app-container--vertical': props.vertical,
  }
})
</script>
<style lang="scss" scoped>
.app-page {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f0f2f5;
}

.main {
  height: calc(100% - 54px);
  overflow: hidden;
  margin: 16px;
}
</style>
